﻿using GMS.Client.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GMS.Client.Core
{
    /// <summary>
    /// 窗体类
    /// </summary>
    public class Window
    {
        public Window(string className, string titleName)
        {
            this.Handle = Win32API.FindWindow(className, titleName);
        }

        public Window(IntPtr handle)
        {
            this.Handle = handle;
        }

        /// <summary>
        /// 句柄
        /// </summary>
        public IntPtr Handle { get; set; }

        /// <summary>
        /// 类名
        /// </summary>
        public string ClassName { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string TitleName { get; set; }

        /// <summary>
        /// 子控件
        /// </summary>
        public List<CustomControl> Controls { get; set; }
    }
}
